﻿Imports BusinessRule.DTO

'Copyright ?1995-2007, Camstar Systems, Inc.All Rights Reserved.
'Description:返工返修数据访问接口
'Copyright (c) : 通力凯顿（北京）系统集成有限公司
'Writer:tianFW
'create Date:2017-5-25
Public Interface uLMSReWorkIBusiness
    ''' <summary>
    ''' 获取返工编号最大值
    ''' </summary>
    ''' <param name="strValue"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMaxStepReworkInfoNO(ByVal strValue As String) As DataTable

    ''' <summary>
    ''' 添加返修信息明细
    ''' </summary>
    ''' <param name="dt"></param>
    ''' <param name="stepreworkid"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddStepReworkInfoDetail(ByVal dt As DataTable, ByVal stepreworkid As String) As Boolean

    ''' <summary>
    ''' 添加返工返修信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddStepReworkInfo(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 查看是否已存在返修信息
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function IsExistStepReworkInfo(ByVal strContainerID As String) As DataTable

    ''' <summary>
    ''' 查询已存在的返修信息明细表
    ''' </summary>
    ''' <param name="strStepReworkInfoID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function FindIsExistStepReworkInfoDetail(ByVal strStepReworkInfoID As String) As DataTable

    ''' <summary>
    ''' 更新返工返修信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateReworkInfo(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 按唯一id删除返工返修明细
    ''' </summary>
    ''' <param name="id"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DelStepReworkInfoDetail(ByVal id As String) As Boolean

    ''' <summary>
    ''' 获取有返工返修的批次信息 
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetReWorkContainerInfo(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 根据选择的批次信息获取该批次的所有返工返修信息
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetStepReworkInfoByContainerID(ByVal ContainerID As String, ByVal WorkflowStepID As String) As DataTable

    ''' <summary>
    ''' 获取总的返工返修批次数
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetCountofStepReworkInfo(ByVal para As Dictionary(Of String, String)) As Integer

    ''' <summary>
    ''' 根据返修返工ID获取返工返修详细信息
    ''' </summary>
    ''' <param name="stepreworkinfoID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetStepReworkInfodetial(ByVal stepreworkinfoID As String) As DataTable

    ''' <summary>
    ''' 获取返工返修信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetreWorkInfo(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 获取所有符合条件的批次当前序返工记录
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetCurrentReWorkInfo(ByVal para As Dictionary(Of String, String)) As DataTable


    ''' <summary>
    ''' 更新服务总表批次的返工返修标识
    ''' </summary>
    ''' <param name="containerID">批次ID</param>
    ''' <param name="type">1 当前序有返工返修记录标识 0 无</param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateReWorkNum(ByVal containerID As String, ByVal type As Integer) As Boolean
End Interface

